<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE tiles-definitions PUBLIC
       "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
       "http://tiles.apache.org/dtds/tiles-config_2_0.dtd">

<tiles-definitions>

    <!-- Default Main Template -->
    <definition name="main" template="/layout/home.jsp">
        <put-attribute name="title" value="Utente Registrato" type="string" />
        <put-attribute name="header" value="/layout/home/header.jsp" />
        <put-attribute name="footer" value="/layout/home/footer.jsp" />
        <put-attribute name="menu" value="/layout/home/menu.jsp" />
        <put-attribute name="body" value="/layout/home/body.jsp" />
    </definition>
       
    <!-- Default Main Template Giocatori -->
    <definition name="compose" template="/layout/compose.jsp">
        <put-attribute name="body" value="/layout/home/body.jsp" />
    </definition>
    
    <definition name="giocatori.elenco" extends="main">
     <put-attribute name="body" value="/pages/giocatori/elenco.jsp" />
    </definition>
    
    <definition name="giocatori.compose" extends="compose">
     <put-attribute name="body" value="/pages/giocatori/compose.jsp" />
    </definition>
     
    <definition name="giocatori.insertPlayer" extends="main">
     <put-attribute name="body" value="/pages/giocatori/insertPlayer.jsp" />
    </definition>
    
    <definition name="giocatori.newteam" extends="main">
     <put-attribute name="body" value="/pages/giocatori/newTeam.jsp" />
    </definition>
    
    <definition name="giocatori.rosa" extends="main">
     <put-attribute name="body" value="/pages/giocatori/rosa.jsp" />
    </definition>
    
    <definition name="giocatori.gestione" extends="main">
     <put-attribute name="body" value="/pages/giocatori/gestioneTeam.jsp" />
    </definition>
        
    <!-- User -->
    
    <definition name="users.registerform" extends="main">
     <put-attribute name="body" value="/pages/users/registrazione.jsp" />
    </definition>
     <definition name="users.login" extends="main">
     <put-attribute name="body" value="/pages/users/login.jsp" />
    </definition>
    <definition name="users.logout" extends="main">
     <put-attribute name="body" value="/pages/users/logout.jsp" />
    </definition>
    
    <!-- Admin -->
     <definition name="users.listuser" extends="main">
     <put-attribute name="body" value="/pages/users/users.jsp" />
    </definition>
    
    
    <!-- Exception -->
    
    <definition name="global.exception" extends="main">
     <put-attribute name="body" value="/pages/global/exception.jsp" />
    </definition>
</tiles-definitions>



